﻿jQuery(document).ready(function ($) {
    var jssor_1_options = {
        $AutoPlay: true,
        $DragOrientation: 2,
        $PlayOrientation: 2,

    };
    var jssor_1_slider = new $JssorSlider$("news-newest-test", jssor_1_options);
});
$(document).ready(function () {
    $(window).scroll(function () {
        var newshotest = document.getElementById("news-hotest");
        var newsnewest = document.getElementById("news-newest");
        var fnbl = newshotest.offsetTop + newshotest.offsetHeight;
        var footer = document.getElementsByClassName("main-footer")[0];
        var limit = footer.offsetTop - newsnewest.offsetHeight;
        if ($(this).scrollTop() >= fnbl && $(this).scrollTop() < limit) {
            $("#news-newest").addClass("news-fixed-top");
        }
        else {
            $("#news-newest").removeClass("news-fixed-top");
        }
    });
});